<?php
$this->Html->addCrumb('Categories',array('controller' => 'categories','admin'=>true));
?> 
<article class="module width_full">
	<header><h3>List Categories</h3></header>
	<table class="tablesorter" cellspacing="0">
		  <thead>
			<tr>
			  <th><input id = "checkAll" type="checkbox"></th>
			  <th>Name</th>
              <th>Published</th>
			  <th>Description</th>
			  <th>Actions</th>
			</tr>
		  </thead>
		  <tbody>
		<?php for($i=1;$i<=10;$i++){ ?>
				<tr>
					<td><input type="checkbox"></td>
					<td>Lorem Ipsum Dolor Sit Amet</td>
                    <td><center>
                    	<?php
							echo $this->Html->image("/images/icn_alert_success.png", array(
								'url' => array('controller' => 'Categories', 'admin' => true ,'action' => 'block', 1),
								'title' => 'Click to block this category.'
							));
						?>
                    </center></td>
					<td>Mark Corrigan So, looks like a slight change in version 2.0 to the variable name from</td>
					<td><center>
						<?php 
							echo $this->Html->image("/images/icn_edit.png", array(
								'url' => array('controller' => 'Categories', 'admin' => true ,'action' => 'editCategory', 1),
								'title' => 'Edit'
							));
							
							echo $this->Html->image("/images/icn_trash.png", array(
								'url' => array('controller' => 'Categories', 'admin' => true ,'action' => 'deleteCategory', 1),
								//sprintf(__('Are you sure you want to delete # %s?'),1),
								'title' => 'Move to trash!'
							));
						?>
					</center></td>
				</tr>
		<?php } ?>
		</tbody>
	</table>
<footer>
    <div class="submit_link">
    	<?php echo $this->Html->link(
			'<input type="submit" value="Create new category" class="alt_btn">',
			array(
				'controller' => 'Categories',
				'admin' => true ,
				'action' => 'createCategory'),
			array(
				'escape' => false)
			);?>
    </div>
</footer>
</article>
